<template>
  <div class="teml">
    <div class="lunbo-wrap">
      <mt-swipe :auto="4000">
        <mt-swipe-item v-for="(lunbo,index) in lunbos" :key="index">
          <img :src="lunbo.url"> {{lunbo.title}}
        </mt-swipe-item>
      </mt-swipe>
    </div>
    <div>
      <div class="mui-content">
        <ul class="mui-table-view mui-grid-view mui-grid-9">
          <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3">
            <router-link :to="{name:'newsList'}">
              <span class="mui-icon mui-icon-home"></span>
              <div class="mui-media-body">新闻资讯</div>
            </router-link>
          </li>
          <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3">
            <router-link :to="{name:'photoShare'}">
              <span class="mui-icon mui-icon-email"></span>
              <div class="mui-media-body">图文分享</div>
            </router-link>
          </li>
          <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3">
            <a href="#">
              <span class="mui-icon mui-icon-chatbubble"></span>
              <div class="mui-media-body">商品展示</div>
            </a>
          </li>
          <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3">
            <a href="#">
              <span class="mui-icon mui-icon-location"></span>
              <div class="mui-media-body">留言反馈</div>
            </a>
          </li>
          <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3">
            <a href="#">
              <span class="mui-icon mui-icon-search"></span>
              <div class="mui-media-body">搜索资讯</div>
            </a>
          </li>
          <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3">
            <a href="#">
              <span class="mui-icon mui-icon-phone"></span>
              <div class="mui-media-body">联系我们</div>
            </a>
          </li>
        </ul>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  data () {
    return {
      lunbos: []
    }
  },
  created () {
    this.$ajax('./seller')
      .then(res => {
        console.log(res.data.dd)
        this.lunbos = res.data.dd
      })
  }
}
</script>
<style scoped>
.lunbo-wrap {
  height: 200px;
}
.mint-swipe-item img {
  width: 100%;
}
.mui-icon-home:before,
.mui-icon-email:before,
.mui-icon-chatbubble:before,
.mui-icon-location:before,
.mui-icon-search:before,
.mui-icon-phone:before {
  content: "";
}
.mui-icon {
  height: 50px;
  width: 50px;
}
.mui-icon-home {
    background-image: url('../static/img/news.png');
    /*环绕显示，让图片自动填充满*/
    background-repeat: round;
}
.mui-icon-email {
    background-image: url('../static/img/picShare.png');
    background-repeat: round;
}

.mui-icon-chatbubble {
    background-image: url('../static/img/goodShow.png');
    background-repeat: round;
}

.mui-icon-location {
    background-image: url('../static/img/feedback.png');
    background-repeat: round;
}

.mui-icon-search {
    background-image: url('../static/img/search.png');
    background-repeat: round;
}

.mui-icon-phone {
    background-image: url('../static/img/callme.png');
    background-repeat: round;
}
.mui-content > .mui-table-view:first-child{
    margin: 0px;
}
.mui-grid-view.mui-grid-9{
  background-color:white;
}
.mui-grid-view.mui-grid-9 .mui-table-view-cell{
  border-right:none;
  border-bottom:none;
}
</style>
